#include "EspInstanceApplication.h"
#include "EspInstanceWindow.h"

#ifdef USE_JS_SCRIPT
#include "JsScriptApplication.h"
#endif

extern "C" void app_main(void)
{
    // EspInstanceWindow::DumpMemory();
    EspInstanceWindow::DumpMemory();
#ifdef USE_JS_SCRIPT
    // EspInstanceApplication::GetInstance()->SetScriptApplication(JsScriptApplication::GetInstance()->GetLanguage(), JsScriptApplication::GetInstance());
#endif
    EspInstanceApplication::GetInstance()->SetWindow(EspInstanceWindow::GetInstance());
    EspInstanceApplication::GetInstance()->SetTimerInterval(20);
    EspInstanceApplication::GetInstance()->Start(0, nullptr);
}